package com.lzc.common.exception;

/**
 * @author lzc
 * @create 2020-07-30 15:46
 */
public enum BizCodeEnume {

    UNKNOW_EXCEPTION(10000,"未知异常"),
     VAILD_EXCEPTION(10001,"参数校验格式失败"),
    PRODUCT_UP_EXCEPTION(11000,"商品上架异常"),
    USERNAME_EXCEPTION(12000,"用户名已存在"),
    PHONE_EXCEPTION(12001,"手机号已存在"),
    LOGIN_EXCEPTION(12002,"登录失败，用户名或密码不存在");
    private int code;
    private String msg;

    BizCodeEnume(int code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
